package jp.eisbahn.mgapi.api.groups;

import jp.eisbahn.mgapi.api.Request;
import jp.eisbahn.mgapi.api.Response;
import jp.eisbahn.mgapi.http.ContentType;
import jp.eisbahn.mgapi.http.HttpMethod;

public class GroupRequest implements Request {
    
    public static final String BASE_URI = "/groups/{userId}";

    private String userId;

    @Override
    public String getUri() {
        return BASE_URI.replace("{userId}", userId);
    }

    @Override
    public HttpMethod getHttpMethod() {
        return HttpMethod.GET;
    }

    @Override
    public Class<? extends Response> getResponseClass() {
        return GroupsResponse.class;
    }

    @Override
    public ContentType getContentType() {
        return ContentType.X_WWW_FORM_URLENCODED;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

}
